package com.unicom.priceboard.data.vo;

/**
 * @author Quan
 *
 */
public class PutExecElement {
	public Integer confirmNo;
    public Short securityNo;
    public String volume;
    public String price;
    public Character board;
    public String symbol_code;
    private String key;
    
	public String getSymbolStock() {
		return symbol_code;
	}
	public void setSymbolStock(String symbolStock) {
		this.symbol_code = symbolStock;
	}
	/**
	 * @return the board
	 */
	public Character getBoard() {
		return board;
	}
	/**
	 * @param board the board to set
	 */
	public void setBoard(Character board) {
		this.board = board;
	}
	/**
	 * @return the confirmNo
	 */
	public Integer getConfirmNo() {
		return confirmNo;
	}
	/**
	 * @param confirmNo the confirmNo to set
	 */
	public void setConfirmNo(Integer confirmNo) {
		this.confirmNo = confirmNo;
		this.key       =String.valueOf(confirmNo);
	}
	/**
	 * @return the price
	 */
	public String getPrice() {
		return price;
	}
	/**
	 * @param price the price to set
	 */
	public void setPrice(String price) {
		this.price = price;
	}
	/**
	 * @return the securityNo
	 */
	public Short getSecurityNo() {
		return securityNo;
	}
	/**
	 * @param securityNo the securityNo to set
	 */
	public void setSecurityNo(Short securityNo) {
		this.securityNo = securityNo;
	}
	/**
	 * @return the volume
	 */
	public String getVolume() {
		return volume;
	}
	/**
	 * @param volume the volume to set
	 */
	public void setVolume(String volume) {
		this.volume = volume;
	}

	@Override
	public boolean equals(Object obj) {
		if(!this.getClass().isInstance(obj))
			return false;
		else{
			PutExecElement compareObject = (PutExecElement)obj;
			
			if(this.price!=compareObject.getPrice())
				return false;
			else if(this.volume!=compareObject.getVolume())
				return false;
			
			return true;
		}
	}
	public String getKey() {
		return key;
	}
	public void setKey(String key) {
		this.key = key;
	}
	
	
}
